﻿// -------------------------------------------------------------------------
//    @FileName         :    NFTransSaveSimpleDb.h
//    @Author           :    Gao.Yi
//    @Date             :    2025-08-17
//    @Email			:    445267987@qq.com
//    @Module           :    NFTransSaveSimpleDb
//    @Desc             :    
//
// -------------------------------------------------------------------------

#pragma once

#include "NFSnsRoleSimple.h"
#include "NFServerComm/NFServerCommon/NFCacheDataSaveTrans.h"
#include "NFLogicCommon/NFLogicShmTypeDefines.h"

class NFTransSaveSimpleDb : public NF_OBJECT_TEMPLATE_MACRO(NFTransSaveSimpleDb, EOT_TRANS_SAVE_ROLE_SIMPLE, NFCacheDataSaveTrans)
public:
    NFTransSaveSimpleDb();
    ~NFTransSaveSimpleDb() override;
    int CreateInit();
    int ResumeInit();
public:
    int SaveDb(NFSnsRoleSimple* pRoleSimple, int iReason = TRANS_SAVEROLEDETAIL_NORMAL);
};
